cmake_minimum_required(VERSION 2.8)
project(tiny_c_compiler C)
set(CMAKE_C_STANDARD 11)

add_library(symbol SHARED
        symbol.c
        table.c)

add_library(ast SHARED
        ast.c)

add_library(semant SHARED
        types.c
        ir.c)

add_library(frame XXXframe.c)

add_executable(test_symbol test_symbol.c)
target_link_libraries(test_symbol symbol)